package cn.stylefeng.guns.modular.hx.basic.mapper;

import java.util.List;
import java.util.Map;

import cn.stylefeng.guns.modular.hx.storage.model.params.HxStoragePutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicGoods;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicGoodsParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicGoodsResult;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商品信息表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-06-18
 */
public interface HxBasicGoodsMapper extends BaseMapper<HxBasicGoods> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    List<HxBasicGoodsResult> customList(@Param("paramCondition") HxBasicGoodsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxBasicGoodsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    Page<HxBasicGoodsResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<HxBasicGoodsResult> customYpdwPageList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsParam paramCondition);

    Page<HxBasicGoodsResult> customGjkcWgxPageList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsParam paramCondition);


    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsParam paramCondition);

	boolean saveBatchList(@Param("list")List<HxBasicGoodsParam> list);

	HxBasicGoodsResult findBySpec(@Param("paramCondition")HxBasicGoodsParam param, @Param("operateId")Long operateId);

    List<HxBasicGoodsResult> findListBySpecApp(@Param("paramCondition")HxBasicGoodsParam paramCondition,@Param("deptId") Long deptId,@Param("condition") String condition, @Param("operateId")Long operateId);

    List<HxBasicGoodsResult> findListBySpecAppOut(@Param("paramCondition")HxBasicGoodsParam goodsParam, @Param("condition")String condition, @Param("operateId")Long operateId);

	List<HxBasicGoodsResult> findListBySpec(@Param("paramCondition")HxBasicGoodsParam param);

	List<HxBasicGoodsResult> findlistAllBySpec(@Param("paramCondition")HxBasicGoodsParam hxBasicGoodsParam, @Param("condition")String condition, @Param("operateId")Long operateId);


    void updategoodsrate(@Param("paramCondition")HxBasicGoodsParam hxBasicGoodsParam);

    void updategoodsrate1(@Param("paramCondition")HxBasicGoodsParam hxBasicGoodsParam);


    void updategoodsrate2(@Param("paramCondition")HxBasicGoodsParam hxBasicGoodsParam);

    void updategoodsrate3(@Param("paramCondition")HxBasicGoodsParam hxBasicGoodsParam);



    Page<HxBasicGoodsResult> customWhPageList(@Param("page")Page pageContext, @Param("paramCondition") HxBasicGoodsParam hxBasicGoodsParam);
}
